﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ThanhTu.GNC.Media.KQXS.DataAccess.BL;
using ThanhTu.GNC.Media.KQXS.Common;

namespace GNCMedia.KQXS
{
    public partial class _00from99 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            ResultLotteryBL vResultLotteryBL = new ResultLotteryBL();
            try
            {
                string provinceID = Request.QueryString["ID"].ToString();
                string sto_date = Request.QueryString["to"].ToString();
                string sfrom_date = Request.QueryString["from"].ToString();

                DateTime to_date = Utils.ToDateTime(sto_date);
                DateTime from_date = Utils.ToDateTime(sfrom_date);
                int count = 0;
                rpt_Statistic_0_To_99.DataSource = vResultLotteryBL.Statistic_0_99(provinceID, to_date, from_date, 1, 1000, ref count);
                rpt_Statistic_0_To_99.DataBind();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
    }
}